package day04;
//while结构的展示
public class WhileDemo {
    public static void main(String[] args) {
        int number =1;
        while (number<=9){
            System.out.println(number+"*9=" +number*9);
            number+=2;
        }
        //执行过程:
        //number=1    1<=9   为true number+=2 输出1*9=9
        //number=3    3<=9   为true number+=2 输出3*9=9
        //number=5    5<=9   为true number+=2 输出5*9=9
        //number=7    7<=9   为true number+=2 输出7*9=9
        //number=9    9<=9   为true number+=2 输出9*9=9
        //number=11   11<=9  为false  While循环结束

































    /*
        int num=0;
        while (num<5){

            System.out.println("行动是成功的阶梯");
            num++;

        }
        System.out.println("继续执行...");


     */
    }
}
